<!--
 * @Description: 班级信息审核
 * @Author: Li Yujie
 * @Date: 2021/03/25
 * @Last Modified by: Li Yujie
 * @Last Modified time: 2021/03/25
-->
<template>
    <div class="wrapper">
        <div class="content-wrapper">
            <!-- header -->
            <div class="header">
                <div class="header-title">
                    班级信息审核
                </div>
                <el-button
                    type="primary"
                    icon="el-icon-setting"
                    size="medium"
                    @click="getAwardMoney"
                >
                    创建班级奖励设置
                </el-button>
            </div>
            <!-- /header -->
            <!-- 筛选-->
            <div class="filter-view">
                <div class="header-new-box">
                    <p class="header-new-box-title">用户信息</p>
                    <el-input
                        placeholder="请输入用户编号或者手机号"
                        v-model="filterData.student_keyword"
                        suffix-icon="el-icon-search"
                        clearable
                        size="medium"
                        @keydown.enter.native="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">学校名称</p>
                    <el-cascader
                        v-model="filterData.school_name"
                        placeholder="请选择学校"
                        :options="school_tree"
                        filterable
                        clearable
                        :show-all-levels="false"
                        size="medium"
                        @change="getTableData(1)"
                        @keyup.native.enter="getTableData(1)"
                        :props="{
                            label: 'name',
                            value: 'name',
                            children: 'children',
                            emitPath: false
                        }"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">学院名称</p>
                    <el-input
                        placeholder="学院名称"
                        v-model="filterData.college_name"
                        suffix-icon="el-icon-search"
                        clearable
                        size="medium"
                        @keydown.enter.native="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">班级名称</p>
                    <el-input
                        placeholder="班级名称"
                        v-model="filterData.class_name"
                        suffix-icon="el-icon-search"
                        clearable
                        size="medium"
                        @keydown.enter.native="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">审核人</p>
                    <el-input
                        placeholder="审核人"
                        v-model="filterData.verify_admin_true_name"
                        suffix-icon="el-icon-search"
                        clearable
                        size="medium"
                        @keydown.enter.native="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">审核状态</p>
                    <el-select
                        v-model="filterData.verify"
                        filterable
                        placeholder="全部"
                        size="medium"
                        style="width: 152px"
                        @change="getTableData(1)"
                    >
                        <el-option
                            v-for="item in statusList"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                        />
                    </el-select>
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">提交时间</p>
                    <el-date-picker
                        v-model="dateTimeRange"
                        type="datetimerange"
                        range-separator="-"
                        start-placeholder="开始日期"
                        end-placeholder="结束日期"
                        :default-time="['00:00:00', '23:59:59']"
                        size="medium"
                        style="width: 400px"
                        value-format="timestamp"
                    />
                </div>
                <div class="header-new-box">
                    <el-button
                        type="primary"
                        size="small"
                        @click="getTableData(1)"
                    >
                        查询
                    </el-button>
                </div>
            </div>
            <!--筛选-->

            <!-- table -->
            <div class="table-wrapper">
                <el-table
                    :data="tableData"
                    height="100%"
                    style="width: 100%;"
                    ref="tempLateName"
                    class="data-table"
                    v-loading="tableLoading"
                >
                    <el-table-column
                        label="序号"
                        align="center"
                        width="80"
                        type="index"
                    />
                    <el-table-column
                        prop="student_no"
                        label="申请人ID"
                        show-overflow-tooltip
                        align="center"
                        :formatter="emptyFormatter"
                    />
                    <el-table-column
                        prop="phone"
                        label="用户手机号"
                        show-overflow-tooltip
                        align="center"
                        :formatter="emptyFormatter"
                        width="120"
                    />
                    <el-table-column
                        prop="school_name"
                        label="学校信息"
                        show-overflow-tooltip
                        align="center"
                        :formatter="emptyFormatter"
                    />
                    <el-table-column
                        prop="college_name"
                        label="学院信息"
                        show-overflow-tooltip
                        align="center"
                        :formatter="emptyFormatter"
                    />
                    <el-table-column
                        prop="major_name"
                        label="专业信息"
                        show-overflow-tooltip
                        align="center"
                        :formatter="emptyFormatter"
                    />
                    <el-table-column
                        prop="education_year"
                        label="学制"
                        align="center"
                        show-overflow-tooltip
                        :formatter="emptyFormatter"
                    />
                    <el-table-column
                        prop="enter_school_year"
                        label="入学年份"
                        align="center"
                        :formatter="emptyFormatter"
                    />
                    <el-table-column
                        prop="class_name"
                        label="班级信息"
                        show-overflow-tooltip
                        align="center"
                        :formatter="emptyFormatter"
                    >
                        <template slot-scope="scope">
                            {{ scope.row.class_name ? scope.row.class_name : '--' }}
                            <el-popover
                                placement="top-start"
                                width="140"
                                trigger="hover"
                                :content="scope.row.same_verify_from_type === 0 ? '平台创建重名' : '用户创建重名'"
                                v-if="scope.row.same_verify_id"
                            >
                                <i
                                    slot="reference"
                                    class="iconfont el-icon-hand-tanhao3x"
                                    style="color: #FF3030;cursor: pointer"
                                />
                            </el-popover>
                        </template>
                    </el-table-column>
                    <el-table-column
                        prop="class_group_number"
                        label="班级QQ群号"
                        align="center"
                        :formatter="emptyFormatter"
                    />
                    <el-table-column
                        label="提交时间"
                        align="center"
                        width="200"
                        :formatter="emptyFormatter"
                    >
                        <template slot-scope="scope">
                            {{ scope.row.submit_time * 1000 | dateFormatter('yyyy/MM/dd HH:mm:ss') }}
                        </template>
                    </el-table-column>
                    <el-table-column
                        label="审核状态"
                        show-overflow-tooltip
                        align="center"
                        :formatter="emptyFormatter"
                    >
                        <template slot-scope="scope">
                            <div class="status-wrapper">
                                <div
                                    :class="['status-dot', scope.row.verify === 0 ? 'warning' : scope.row.verify === 1 ? 'success' : 'danger']"/>
                                <div v-if="scope.row.verify === 0">待审核</div>
                                <div v-if="scope.row.verify === 1">已通过</div>
                                <div v-if="scope.row.verify === -1">不通过</div>
                            </div>
                        </template>
                    </el-table-column>
                    <el-table-column
                        prop="verify_admin_true_name"
                        label="审核人"
                        align="center"
                        :formatter="emptyFormatter"
                    />
                    <el-table-column
                        prop="remark"
                        label="备注"
                        align="center"
                        :formatter="emptyFormatter"
                    />
                    <el-table-column
                        label="操作"
                        align="left"
                        width="180"
                    >
                        <template slot-scope="scope">
                            <div class="option-btn-group">
                                <el-button
                                    type="text"
                                    size="medium"
                                    @click="showVerifyDialog(scope.row, scope.$index)"
                                >
                                    {{ scope.row.verify === 0 ? '审核' : '查看' }}
                                </el-button>
                                <el-button
                                    type="text"
                                    size="medium"
                                    :disabled="scope.row.verify !== 0"
                                    @click="handleVerify(scope.row, 'pass')"
                                >
                                    通过
                                </el-button>
                                <el-button
                                    type="text"
                                    size="medium"
                                    :disabled="scope.row.verify !== 0"
                                    @click="showRejectDialog(scope.row)"
                                >
                                    不通过
                                </el-button>
                                <el-button
                                    type="text"
                                    size="medium"
                                    :disabled="scope.row.remark !== ''"
                                    @click="showRemarkDialog(scope.row)"
                                >
                                    备注
                                </el-button>
                            </div>
                        </template>
                    </el-table-column>
                </el-table>
            </div>
            <!-- /table -->

            <!-- /分页 -->
            <div class="pagination-wrapper clearfix">
                <el-pagination
                    layout="total, prev, pager, next, jumper"
                    background
                    :current-page.sync="page.now_page"
                    :total="page.total_count"
                    :page-size="page.page_size"
                    @current-change="getTableData"
                />
            </div>
        </div>
        <!-- 审核弹窗 -->
        <verify-dialog
            title="班级信息审核"
            :visible.sync="verifyDialogVisible"
            :data="tableData"
            :index="verifyIndex"
            :status="verifyRow.verify === 1 ? 'pass' : verifyRow.verify === -1 ? 'reject' : ''"
            :reason="verifyRow.verify_fail_reason"
            ref="verifyDialog"
            v-if="verifyRow"
            @pass="handleVerify(verifyRow, 'pass')"
            @reject="showRejectDialog(verifyRow)"
            @change="changeVerifyData($event)"
        >
            <el-form
                label-width="117px"
                class="verify-form"
            >
                <el-form-item label="专业名称：">
                    {{ verifyRow.major_name }}
                </el-form-item>
                <el-form-item label="学制：">
                    {{ verifyRow.education_year }}
                </el-form-item>
                <el-form-item label="入学年份：">
                    {{ verifyRow.enter_school_year }}
                </el-form-item>
                <el-form-item label="班级名称：">
                    {{ verifyRow.class_name }}
                </el-form-item>
                <el-form-item label="班级qq群号：">
                    {{ verifyRow.class_group_number }}
                </el-form-item>
                <!--v2.1.2班级改版隐藏-->
                <!--<el-form-item
                    :label="`QQ群截图 (${verifyRow.class_group_images ? verifyRow.class_group_images.length : 0})：`"
                >
                    <div class="pic-list">
                        <img
                            v-for="(item, index) in verifyRow.class_group_images"
                            :key="index"
                            :src="item"
                            @click="showPreview(verifyRow.class_group_images, index)"
                        >
                    </div>
                </el-form-item>
                <el-form-item
                    :label="`学生证图片 (${verifyRow.student_card_images ? verifyRow.student_card_images.length : 0})：`"
                >
                    <div class="pic-list">
                        <img
                            v-for="(item, index) in verifyRow.student_card_images"
                            :key="index"
                            :src="item"
                            @click="showPreview(verifyRow.student_card_images, index)"
                        >
                    </div>
                </el-form-item>-->
            </el-form>
        </verify-dialog>
        <!-- 驳回弹窗 -->
        <reject-dialog
            ref="rejectDialog"
            :visible.sync="rejectDialog"
            :reason-detail="reasonDetail"
            :maxlength="100"
            @confirm="handleVerify(verifyRow, 'reject', $event)"
        />
        <!-- 图片预览 -->
        <!--<img-preview ref="preview"/>-->
        <!-- 图片预览 -->
        <el-image-viewer
            class="el-image-viewer--verify"
            v-if="showViewer"
            :url-list="previewImages"
            :initial-index="initialIndex"
            :mask-closable="false"
            :append-to-body="false"
            :on-close="() => { showViewer = false }"
        />
        <!-- 设置奖励弹窗 -->
        <el-dialog
            :visible.sync="awardSettingDialog"
            title="创建班级奖励设置"
            width="540px"
            :close-on-click-modal="false"
            @close="awardForm.type = 'detail'"
        >
            <div class="dialog-body">
                成功创建班级奖励金额：
                <span v-if="awardForm.type === 'detail'">
                    {{ awardForm.award_money }} 元
                </span>
                <el-input
                    v-model="awardForm.award_money"
                    size="medium"
                    style="width: 128px"
                    v-else
                >

                    <span slot="suffix">元</span>
                </el-input>
            </div>
            <div class="dialog-footer">
                <el-button
                    size="medium"
                    type="default"
                    :style="{width: '120px', marginRight: '32px'}"
                    @click="awardSettingDialog = false"
                >
                    取 消
                </el-button>
                <el-button
                    type="primary"
                    size="medium"
                    :style="{width: '120px'}"
                    v-if="awardForm.type === 'detail'"
                    @click="awardForm.type = 'edit'"
                >
                    编 辑
                </el-button>
                <el-button
                    type="primary"
                    size="medium"
                    :style="{width: '120px'}"
                    v-else
                    @click="handleSetAward"
                >
                    确 定
                </el-button>
            </div>
        </el-dialog>
    </div>
</template>

<script>
import {back} from '@/mixin/back';
import ImgPreview from "@/components/common/img-preview";
import RejectDialog from "@/components/dialog/reject-dialog";
import VerifyDialog from "@/components/dialog/verify-dialog";
import ElImageViewer from 'element-ui/packages/image/src/image-viewer';

export default {
    name: 'SocialClassVerify',
    mixins: [back],
    components: {
        VerifyDialog,
        RejectDialog,
        ImgPreview,
        ElImageViewer
    },
    data() {
        return {
            filterData: {
                // 用户信息
                student_keyword: '',
                // 学校名称
                school_name: '',
                // 学院名称
                college_name: '',
                class_name: '',
                // 审核人
                verify_admin_true_name: '',
                // 审核状态
                verify: 99,
                // 报名时间
                start_time: '',
                end_time: ''
            },
            tableData: [],
            tableLoading: false,
            page: {
                now_page: 1,
                total_count: 0,
                page_size: 20
            },
            dateTimeRange: [],
            // 审核类型
            statusList: [
                {label: '全部', value: 99},
                {label: '待审核', value: 0},
                {label: '已通过', value: 1},
                {label: '不通过', value: -1},
            ],
            school_tree: [],
            rejectDialog: false,
            reasonDetail: '',
            // 审核数据
            verifyRow: {},
            verifyIndex: 0,
            verifyDialogVisible: false,
            // element图片预览
            previewImages: [],
            showViewer: false,
            initialIndex: 0,
            awardSettingDialog: false,
            awardForm: {
                award_money: 0,
                type: 'detail'
            }
        };
    },
    computed: {},
    watch: {
        dateTimeRange(value) {
            this.filterData.start_time = value ? value[0] / 1000 : '';
            this.filterData.end_time = value ? value[1] / 1000 : '';
            this.getTableData(1);
        }
    },
    filters: {
        eduLevelFilter(val) {
            switch (val) {
                case 1:
                    return '专科';
                case 2:
                    return '本科';
                case 3:
                    return '研究生';
                case 4:
                    return '博士';
                default:
                    return '--';
            }
        },
    },

    mounted() {
        this.$store.commit('SET_HEADER', [{title: "APP后台"}, {title: '社交'}, {title: '班级管理'}, {title: '班级信息审核'}]);
        this.authResult = this.$route.meta.authResult;

        this.filterData.student_keyword = this.$route.query.student_no;
        this.getTableData();
        this.getSchoolTree();
    },

    methods: {

        /**
         * @description 获取省/市/学校三级联动
         */
        getSchoolTree() {
            this.$post('/student/local_info%5Cschool_tree', {}, resp => {
                if (resp.code === 1) {
                    this.school_tree = resp.data.tree;
                }
            });
        },

        /**
         * @description 获取列表数据
         * @param page
         */
        getTableData(page) {

            this.tableLoading = true;
            let params = {...this.filterData};

            params.page_id = page || this.page.now_page;
            this.$post('/student/region_class_student_submit%5Cget_list', params, res => {
                if (res.code === 1) {
                    this.tableData = res.data.list;
                    this.page = res.data.page;
                    this.verifyRow = this.tableData[this.verifyIndex];
                } else {
                    this.$notify({
                        title: '提示',
                        message: res.msg,
                        type: 'warning',
                        duration: 2000
                    });
                }
                this.tableLoading = false;
            });
        },

        /**
         * @description 过滤函数
         */
        emptyFormatter(row, column, val) {
            if (!val) return '--';
            return val;
        },

        /**
         * 预览图片
         * @param   {String}    images      //单图预览
         * @param   {Array}     images      //多图预览
         * @param index
         */
        showPreview(images, index = 0) {
            this.previewImages = images;
            this.initialIndex = index;
            this.showViewer = true;
        },

        /**
         * 显示拒绝原因弹窗
         * @param row
         */
        showRejectDialog(row) {
            this.verifyRow = row;
            this.rejectDialog = true;
        },

        /**
         * 审核通过或拒绝
         * @param row
         * @param action pass通过 reject拒绝
         * @param verify_fail_reason
         */
        handleVerify(row, action, verify_fail_reason = '') {
            if (!this.authResult.auth_verify) {
                this.$notify({
                    title: '提示',
                    message: '请联系管理员添加权限',
                    type: 'warning',
                    duration: 2000
                });
                return false;
            }

            if (action === 'reject') {
                if (!verify_fail_reason) {
                    this.$message.warning('请填写审核驳回原因!');
                    return;
                }
                this.verifyRequest(row.id, -1, verify_fail_reason);
            } else {
                this.$confirm(`是否确定通过审核?`, '提示', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning'
                }).then(() => {
                    this.verifyRequest(row.id, 1, '');
                });
            }
        },

        /**
         * 审核请求
         * @param id
         * @param verify
         * @param verify_fail_reason
         */
        verifyRequest(id, verify, verify_fail_reason) {
            let params = {
                id,
                verify,
                verify_fail_reason
            };

            this.$post('/student/region_class_student_submit%5Cverify', params, resp => {
                if (resp.code === 1) {
                    this.getTableData();
                    this.$notify({
                        title: '提示',
                        message: '操作成功',
                        type: 'success',
                        duration: 2000
                    });
                } else {
                    this.$notify({
                        title: '提示',
                        message: resp.msg,
                        type: 'warning',
                        duration: 2000
                    });
                }
            });
        },

        /**
         * 显示审核弹窗
         * @param row
         * @param index
         */
        showVerifyDialog(row, index) {
            this.verifyIndex = index;
            this.verifyRow = row;
            this.verifyDialogVisible = true;
        },

        /**
         * 上一条或下一条
         * @param type - next下一步 prev上一步
         */
        changeVerifyData(type) {
            if (type === 'next' && this.verifyIndex < this.tableData.length - 1) {
                this.verifyIndex++;
                this.verifyRow = this.tableData[this.verifyIndex];
            }
            if (type === 'prev' && this.verifyIndex > 0) {
                this.verifyIndex--;
                this.verifyRow = this.tableData[this.verifyIndex];

            }
        },

        /**
         * 显示备注弹窗
         */
        showRemarkDialog(row) {
            if (!this.authResult.auth_remark) {
                this.$notify({
                    title: '提示',
                    message: '请联系管理员添加权限',
                    type: 'warning',
                    duration: 2000
                });
                return false;
            }
            this.$prompt('', '备注', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                inputPlaceholder: '请输入备注内容',
                inputValue: row.remark
            }).then(({value}) => {
                let params = {
                    id: row.id,
                    remark: value
                };

                this.$post('/student/region_class_student_submit%5Cset_remark', params, resp => {
                    if (resp.code === 1) {
                        this.getTableData();
                        this.$notify({
                            title: '提示',
                            message: '操作成功',
                            type: 'success',
                            duration: 2000
                        });
                    } else {
                        this.$notify({
                            title: '提示',
                            message: resp.msg,
                            type: 'warning',
                            duration: 2000
                        });
                    }
                });
            }).catch(() => {
            });
        },

        /**
         * 获取设置奖励金额
         */
        getAwardMoney() {
            this.$post('/student/region_class%5Cget_config', {}, resp => {
                if (resp.code === 1) {
                    this.awardForm.award_money = resp.data.award_money;
                    this.awardSettingDialog = true;
                } else {
                    this.$notify({
                        title: '提示',
                        message: resp.msg,
                        type: 'warning',
                        duration: 2000
                    });
                }
            });
        },

        /**
         * 设置奖励金额
         */
        handleSetAward() {
            if (!this.authResult.set_award) {
                this.$notify({
                    title: '提示',
                    message: '请联系管理员添加权限',
                    type: 'warning',
                    duration: 2000
                });
                return false;
            }
            this.$post('/student/region_class%5Cset_config', {award_money: this.awardForm.award_money}, resp => {
                if (resp.code === 1) {
                    this.$notify({
                        title: '提示',
                        message: '设置成功',
                        type: 'success',
                        duration: 2000
                    });
                    this.awardSettingDialog = false;
                } else {
                    this.$notify({
                        title: '提示',
                        message: resp.msg,
                        type: 'warning',
                        duration: 2000
                    });
                }
            });
        }
    }
};
</script>

<style lang="less" scoped>
.wrapper {
    width: 100%;

    .content-wrapper {
        display: flex;
        height: calc(100% - 24px);
        flex-direction: column;
        position: relative;
        margin: 12px;
        background: #fff;
        box-sizing: border-box;

        /*header*/
        .header {
            height: 68px;
            padding: 24px;
            box-sizing: border-box;
            box-shadow: 0px -1px 0px 0px #F0F2F5;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #F0F2F5;

            .header-title {
                color: #333333;
                font-size: 20px;
                height: 20px;
                font-weight: 500;
                position: relative;
                margin: 24px 0 24px 12px;

                &::before {
                    content: '';
                    position: absolute;
                    left: -8px;
                    top: -1px;
                    width: 3px;
                    height: 20px;
                    background: #1890FF;
                }
            }
        }

        /*筛选*/

        .filter-view {
            box-sizing: border-box;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            padding: 0 24px;
            margin-top: 12px;

            .header-new-box {
                display: flex;
                align-items: center;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #333333;
                white-space: nowrap;
                margin-right: 24px;
                margin-bottom: 12px;

                &-title {
                    margin-right: 16px;
                    white-space: nowrap;
                }
            }
        }
        // 表格
        .table-wrapper {
            padding: 0 24px;
            flex: 1;
            height: 0;
        }

        // 表格
        .data-table {
            ::-webkit-scrollbar {
                width: 6px;
                height: 6px;
            }

            // 操作按钮
            .option-btn-group {
                .el-button {
                    margin-left: 0;
                    margin-right: 10px;
                }
            }
        }

        /* 分页 */

        .pagination-wrapper {
            padding: 12px 24px;
            .el-pagination {
                float: right;
                padding: 0;
                background-color: transparent;
            }
        }
    }
    .status-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;

        .status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            margin-right: 5px;

            &.success {
                background: #4CD964;
            }

            &.danger {
                background: #FF3030;
            }

            &.warning {
                background: #FFA72D;
            }

            &.normal {
                background: #A6A6A6;
            }
        }
    }

    .info-dialog-wrapper {
        padding: 3px 22px;

        /deep/ .el-form-item {
            margin-bottom: 0;
        }

        /deep/ .el-form-item__content {
            line-height: 30px;
            margin-top: 6px;
        }

        .close-btn {
            width: 120px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 50%;
            transform: translateX(-50%);
            margin-top: 24px;
        }
    }

    .dialog-body {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 32px;
        /deep/ .el-input__suffix {
            display: flex;
            align-items: center;
            margin-right: 6px;
        }
    }
    .dialog-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 24px;
    }

    /deep/ .el-dialog__header {
        padding-top: 10px;
        box-shadow: 0 1px 0 0 rgba(233, 233, 233, 1);
        display: flex;
        align-items: center;
        background: #FAFAFA;
        border-radius: 4px 4px 0 0;

        .el-dialog__title {
            font-weight: 500;
            color: #333;
            font-size: 14px;
        }

        .el-icon-close:before {
            color: rgb(194, 194, 194);
            font-size: 17px;
            font-weight: bold;
        }

        .el-dialog__headerbtn {
            top: 14px;
        }
    }

    /deep/ .el-textarea__inner {
        resize: none;
    }

    .pic-list {
        display: flex;
        flex-wrap: wrap;
        margin-top: 12px;

        img {
            width: 100px;
            height: 100px;
            border-radius: 4px;
            border: 1px solid #F1F1F1;
            margin-right: 12px;
            margin-bottom: 12px;
            cursor: pointer;
        }
    }

    .verify-form {
        /deep/ .el-form-item {
            margin-bottom: 10px;
        }
    }
}
</style>

<style>
.el-image-viewer--verify {
    z-index: 2200!important;
}
</style>
